package com.xbongbong.pro.detailtab.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * @author feng.zheng
 * @version v1.0
 * @date 2019/2/25 13:57
 * @since v1.0
 */
@Getter
@Setter
public class DetailUpdateGetDTO extends BaseDTO {
    private static final long serialVersionUID = 684372512933870588L;
    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.detailTabDataGet.dataId.NotNull}")
    private Long dataId;
    /**
     * saas标记
     */
    @NotNull(message = "{dto.msg.detailTabDataGet.saasMark.NotNull}")
    @DecimalMin(value = "1", message = "{dto.msg.detailTabDataGet.saasMark.DecimalMin}")
    @DecimalMax(value = "1", message = "{dto.msg.detailTabDataGet.saasMark.DecimalMax}")
    private Integer saasMark;
    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.detailTabDataGet.businessType.NotNull}")
    private Integer businessType;
    /**
     * 子业务类型
     */
    private Integer subBusinessType;
}
